import request from '@/utils/request'

//发送验证码
export const getCode = (data) => {
    return request.post('/get/code',data)
}

//注册用户
export const register = (data) => {
    return request.post('/user/authentication',data)
}

//登陆
export const login = (data) => {
    return request.post('/login',data)
}

//权限管理
export const authAdmin = (params) => {
    return request.get('/auth/admin',{params})
}

//菜单权限数据
export const userGetMenu = () => {
    return request.get('/user/getmenu')
}

//菜单权限修改
export const userSetMenu = (data) => {
    return request.post('/user/setmenu',data)
}

//菜单权限列表
export const userMenuList = (params) => {
    return request.get('/menu/list',{params})
}

//权限下拉列表
export const userMenuSelectList = () => {
    return request.get('/menu/selectlist')
}